import request from '@/utils/http'

const apiList = {
    getLine: 'data/crop',
    getBar: 'data/bar',
    getRing: 'data/pie'
}

export default {
    getLine: data => {
        return request.get(apiList.getLine, { params: data })
    },
    getBar: data => {
        return request.get(apiList.getBar, { params: data })
    },
    getRing: data => {
        return request.get(apiList.getRing, { params: data })
    },
}